import Opt from '@/components/dt/info/Opt.js'

class ColumnOpt extends Opt {

  constructor() {
    super()
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [{
      field: 'month',
      title: '目标月份',
      minWidth: 110
    },
    {
      field: 'userName',
      title: '成员姓名',
      minWidth: 110
    },
    {
      field: 'workNo',
      title: '成员工号',
      minWidth: 110
    },
    {
      field: 'postName',
      title: '岗位',
      minWidth: 150
    },
    {
      field: 'rankName',
      title: '职级',
      minWidth: 150
    },
    {
      field: 'jumpName',
      title: '跳点方案名称',
      minWidth: 180
    },
    {
      field: 'jumpType',
      title: '跳点取值',
      minWidth: 150
    },
    {
      field: 'targetType',
      title: '跳点指标',
      minWidth: 180
    },
    {
      field: 'jumpRanking',
      title: '跳点排名',
      minWidth: 110
    },
    {
      field: 'indexValue',
      title: '指标值(万元)',
      minWidth: 140
    },
    {
      field: 'practicalValue',
      title: '实际值(万元)',
      minWidth: 140
    },
    {
      field: 'yieldRate',
      title: '达成率(%)',
      minWidth: 140
    }]
  }
}

export default ColumnOpt
